package com.train.batch.enums.impl;

import com.train.batch.enums.Enums;

public enum JobStatusEnums implements Enums {
    UN_RUN("0", "未运行"),
    RUNNING("1", "运行中"),
    PAUSE("2", "暂停"),
    FINISH("3", "完成"),
    ERROR("4", "错误"),
    BLOCK("5", "阻塞");

    private String code;

    private String message;

    JobStatusEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
